﻿using AngleSharp.Parser.Html;
using FC.Tools;
using System;

namespace Spider
{
    class Program
    {
       
        static void Main(string[] args)
        {

            var str = "https://sf.taobao.com/item_list.htm".Post("");

            ////创建(可重用)解析器前端
            //var parser = new HtmlParser();
            //// Source to be pared 
            //var source = " <h1> 一些示例源 </h1> <p id='main'>这是一个段落元素" ;
            ////解析源文档
            //var document = parser.Parse(source);

            //var p = document.CreateElement("p");
            //p.TextContent = "这是另一个段落" ;
            //document.Body.AppendChild(p);

            //var list = document.QuerySelectorAll("p#main");
            //foreach (var item in list)
            //{
            //    Console.WriteLine(item.TextContent);
            //}
        }
    }
}
